package sqlserver.to.mysql.service.impl;

import com.github.pagehelper.PageHelper;
import lombok.extern.slf4j.Slf4j;
import sqlserver.to.mysql.example.mysql.StaffExample;
import sqlserver.to.mysql.example.sqlserver.服务员表_yangguang_new1Example;
import sqlserver.to.mysql.mappers.mysql.StaffMapper;
import sqlserver.to.mysql.mappers.sqlserver.服务员表_yangguang_new1Mapper;
import sqlserver.to.mysql.model.mysql.Staff;
import sqlserver.to.mysql.model.sqlserver.服务员表_yangguang_new1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sqlserver.to.mysql.service.HwmDataTransitionService;

import java.util.List;

@Service
@Slf4j
public class HwmDataTransitionServiceImpl implements HwmDataTransitionService {


    @Autowired
    private StaffMapper staffMapper;
    @Autowired
    private 服务员表_yangguang_new1Mapper 服务员表_yangguangNew1Mapper;

    public void staffDataTransition() {

        PageHelper.startPage(1, 10);
        List<Staff> staffList = staffMapper.selectByExample(new StaffExample());

        服务员表_yangguang_new1 服务员表_yangguang_new1 = 服务员表_yangguangNew1Mapper.selectBy编号("091610004");

        PageHelper.startPage(1, 10);
        List<服务员表_yangguang_new1> new1List = 服务员表_yangguangNew1Mapper.selectByExample(new 服务员表_yangguang_new1Example());

        log.info("1222321");
        log.info("1222321");
        log.info("1222321");
        log.info("1222321");
        log.info("1222321");
    }
}
